#ifndef __HC595_HAL_H_
#define __HC595_HAL_H_

#ifdef __cplusplus
extern "c" {
#endif

#include "drv_gpio.h"
#include <rtdef.h>

#define DATA_PIN PIN_C_13
#define SCLK_PIN PIN_C_15
#define LCLK_PIN PIN_C_14
    
void _74hc595_pin_write(rt_base_t pin, rt_base_t value);
int _74hc595_pin_init(void);
void way_ctrl(uint8_t way,uint8_t enable);
void led_ctrl(uint8_t led,uint8_t enable);
void ir1_ctrl(uint8_t enable);
void ir2_ctrl(uint8_t enable);

#ifdef __cplusplus
}
#endif


#endif   /*__HC595_HAL_H_*/

